package com.tool.imp.ia;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.tool.imp.BillVO;
import com.tool.imp.EntryVO;
import com.tool.imp.FieldVO;
import com.tool.imp.ap.ApBillVO;

public class ProInBillEntryVO extends EntryVO{
	private static Map<String, FieldVO> fieldMap;

	public String getTableName() {
		return "ia_bill_b";
	}
	
	public String getPKField() {
		return "cbill_bid";
	}
	
	public Map<String, FieldVO> getFieldMap() {
		return fieldMap;
	}
	
	static {
		fieldMap = new HashMap<String, FieldVO>();

		//注册数据字段
		//时间戳
		fieldMap.put("ts", new FieldVO("ts", String.class, "ts"));
		//批次号
		fieldMap.put("vbatch", new FieldVO("vbatch", String.class, "vbatch"));
		//计价方式编码,默认为"3"
		fieldMap.put("fpricemodeflag", new FieldVO("fpricemodeflag", Integer.class, "fpricemodeflag"));
		//行号,默认从0开始
		fieldMap.put("irownumber", new FieldVO("irownumber", Integer.class, "irownumber"));
		//分录ID
		fieldMap.put("cbill_bid", new FieldVO("cbill_bid", String.class, "cbill_bid"));
		//单据ID
		fieldMap.put("cbillid", new FieldVO("cbillid", String.class, "cbillid"));
		//公司
		fieldMap.put("pk_corp", new FieldVO("pk_corp", String.class, "pk_corp"));
		//库存组织
		fieldMap.put("crdcenterid", new FieldVO("crdcenterid", String.class, "crdcenterid"));
		//单据号
		fieldMap.put("vbillcode", new FieldVO("vbillcode", String.class, "vbillcode"));
		//单据类型
		fieldMap.put("cbilltypecode", new FieldVO("cbilltypecode", String.class, "cbilltypecode"));
		//存货ID
		fieldMap.put("cinventoryid", new FieldVO("cinventoryid", String.class, "cinventoryid"));
        //存货基本标识
		fieldMap.put("cinvbasid", new FieldVO("cinvbasid", String.class, "cinvbasid"));
		//供应商基本档案标识
		fieldMap.put("cvendorbasid", new FieldVO("cvendorbasid", String.class, "cvendorbasid"));
		//是否批量核算,默认为"N"
		fieldMap.put("bauditbatchflag", new FieldVO("bauditbatchflag", String.class, "bauditbatchflag"));
		//是否赠品,默认为"N"
		fieldMap.put("blargessflag", new FieldVO("blargessflag", String.class, "blargessflag"));
		//业务日期
		fieldMap.put("dbizdate", new FieldVO("dbizdate", String.class, "dbizdate"));
		//供应商ID,与客商基本档案字段关联
		fieldMap.put("cvendorid", new FieldVO("cvendorid", String.class, "cvendorid"));
		//数量
		fieldMap.put("nnumber", new FieldVO("nnumber", BigDecimal.class, "nnumber"));
		//单价
		fieldMap.put("nprice", new FieldVO("nprice", BigDecimal.class, "nprice"));
		//金额
		fieldMap.put("nmoney", new FieldVO("nmoney", BigDecimal.class, "nmoney"));
		//计划金额
		fieldMap.put("nplanedmny", new FieldVO("nplanedmny", BigDecimal.class, "nplanedmny"));
		//计划单价
		fieldMap.put("nplanedprice", new FieldVO("nplanedprice", BigDecimal.class, "nplanedprice"));
	}


	public BigDecimal getNplanedmny() {
		return getBigDecimal("nplanedmny");
	}

	public void setNplanedmny(BigDecimal nplanedmny) {
		setBigDecimal("nplanedmny",nplanedmny);
	}

	public BigDecimal getNplanedprice() {
		return getBigDecimal("nplanedprice");
	}

	public void setNplanedprice(BigDecimal nplanedprice) {
		setBigDecimal("nplanedprice",nplanedprice);
	}

	public BigDecimal getNmoney() {
		return getBigDecimal("nmoney");
	}

	public void setNmoney(BigDecimal nmoney) {
		setBigDecimal("nmoney",nmoney);
	}

	public BigDecimal getNprice() {
		return getBigDecimal("nprice");
	}

	public void setNprice(BigDecimal nprice) {
		setBigDecimal("nprice",nprice);
	}

	public BigDecimal getNnumber() {
		return getBigDecimal("nnumber");
	}

	public void setNnumber(BigDecimal nnumber) {
		setBigDecimal("nnumber",nnumber);
	}

	public String getCvendorid() {
		return getString("cvendorid");
	}

	public void setCvendorid(String cvendorid) {
		setString("cvendorid",cvendorid);
	}

	public String getVbatch() {
		return getString("vbatch");
	}

	public void setVbatch(String vbatch) {
		setString("vbatch",vbatch);
	}

	public String getCinventoryid() {
		return getString("cinventoryid");
	}

	public void setCinventoryid(String cinventoryid) {
		setString("cinventoryid",cinventoryid);
	}

	public int getFpricemodeflag() {
		return getInteger("fpricemodeflag");
	}

	public void setFpricemodeflag(int fpricemodeflag) {
		setInteger("fpricemodeflag",fpricemodeflag);
	}

	public String getCbilltypecode() {
		return getString("cbilltypecode");
	}

	public void setCbilltypecode(String cbilltypecode) {
		setString("cbilltypecode",cbilltypecode);
	}

	public String getVbillcode() {
		return getString("vbillcode");
	}

	public void setVbillcode(String vbillcode) {
		setString("vbillcode",vbillcode);
	}

	public String getPk_corp() {
		return getString("pk_corp");
	}

	public void setPk_corp(String pk_corp) {
		setString("pk_corp",pk_corp);
	}

	public String getCbillid() {
		return getString("cbillid");
	}

	public void setCbillid(String cbillid) {
		setString("cbillid",cbillid);
	}

	public String getCbill_bid() {
		return getString("cbill_bid");
	}

	public void setCbill_bid(String cbill_bid) {
		setString("cbill_bid", cbill_bid);
	}

	public String getTs() {
		return getString("ts");
	}

	public void setTs(String ts) {
		setString("ts", ts);
	}

	public String getCvendorbasid() {
		return getString("cvendorbasid");
	}

	public void setCvendorbasid(String cvendorbasid) {
		setString("cvendorbasid", cvendorbasid);
	}

	public String getCrdcenterid() {
		return getString("crdcenterid");
	}

	public void setCrdcenterid(String crdcenterid) {
		setString("crdcenterid", crdcenterid);
	}

	public String getCinvbasid() {
		return getString("cinvbasid");
		
	}

	public void setCinvbasid(String cinvbasid) {
		setString("cinvbasid", cinvbasid);
	}

	public BigDecimal getNassistnum() {
		return getBigDecimal("nassistnum");
	}

	public void setNassistnum(BigDecimal nassistnum) {
		setBigDecimal("nassistnum", nassistnum);
	}

	public String getCastunitid() {
		return getString("castunitid");
		
	}

	public void setCastunitid(String castunitid) {
		setString("castunitid", castunitid);
	}

	public int getIrownumber() {
		return getInteger("irownumber");
	}

	public void setIrownumber(int irownumber) {
		setInteger("irownumber", irownumber);
	}

	public String getDbizdate() {
		return getString("dbizdate");
		
	}

	public void setDbizdate(String dbizdate) {
		setString("dbizdate",dbizdate);
		
	}

	public String getBlargessflag() {
		return getString("blargessflag");
	}

	public void setBlargessflag(String blargessflag) {
		setString("blargessflag",blargessflag);
	}

	public String getBauditbatchflag() {
		return getString("bauditbatchflag");
	}

	public void setBauditbatchflag(String bauditbatchflag) {
		setString("bauditbatchflag",bauditbatchflag);
	}
	
}
